package com.jike.shop.cloud.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *
 */
@Getter
public enum OrderStatusEnum {

    WAIT_PAYMENT("00", "待支付"),
    WAIT_DELIVER("01", "待发货"),
    WAIT_RECEIVE("02", "待收货"),
    FINISH("03", "订单完成");

    /**
     * 订单状态
     */
    @EnumValue
    private String code;
    /**
     * 订单状态描述
     */
    private String desc;

    OrderStatusEnum(String code, String desc){
        this.code = code;
        this.desc = desc;
    }
}
